<?php 
session_start();include "conn.php";
?>
<?php  include("admin.php");?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title> Bios 管理中心 </title>
<link href="../css/control.css" rel="stylesheet" type="text/css" />



</head>

<body>

<script language="JavaScript" type="text/javascript">
//ChangeSelect(上一级的值,下一级Select控件的ID值,下一级Select控件要选中的值(即value而非text),数据源数组名)，第一级的上级值为0
function ChangeSelect(ParentValue, NextId, NextSelectedValue, ArrObj)
{
    StrObj = eval(document.getElementById(NextId));
    StrObj.length = 0;
    //判断它是二维数组数据源，还是三维数组数据源
    if (ArrObj.length > 0)
    {
        if (ArrObj[0].length == 2)
        {ArrNum = 0;}
        else
        {ArrNum = 2;}
    }
    //显示所有列表
    for (i = 0; i < ArrObj.length; i++)
    {
        if (i == 0)
        {
            StrObj.options[StrObj.length] = new Option("- 請選擇 -", "");
        }
        if (ArrObj[i][1] == ParentValue)
        {
            StrObj.options[StrObj.length] = new Option(ArrObj[i][0],ArrObj[i][ArrNum]);
        }
    }
    //选中列表内某一项
    for (i = 0; i < StrObj.length; i++)
    {
        if (StrObj.options[i].value == NextSelectedValue)
        {
            StrObj.options[i].selected = true;
        }
    }
    //激发下一级的onchange事件以实现多级级联
    StrObj.onchange();
}

//公司二维数组数据源
Office = [
["CategoryName","ParentCategoryName"],


 <?php 
 
 if($_SESSION["box11"]==1){
 $query=mysql_query("select id,username,box2 from guanli where box2='1' order by id");
 }elseif($_SESSION["box22"]==1){
 $query=mysql_query("select id,username,box2 from guanli where box2='1' and username='".$_SESSION["username2"]."' order by id");
 }elseif($_SESSION["box33"]==1){
 $query=mysql_query("select id,username,box2 from guanli where box2='1' and username='".$_SESSION["mastereditname2"]."' order by id");
 }
 
 
 
	       if($query==true){
		   while($myrow=mysql_fetch_array($query)){
		  ?>
["<?php echo $myrow[username];?>","0"],
 <?php }}?>
 
 
 <?php
 if($_SESSION["box11"]==1){
  $query=mysql_query("select id,username,box3,mastereditname from guanli  where box3='1'  order by id");
  }elseif($_SESSION["box22"]==1){
  $query=mysql_query("select id,username,box3,mastereditname from guanli  where box3='1' and mastereditname='".$_SESSION["username2"]."'  order by id");
  }elseif($_SESSION["box33"]==1){
  $query=mysql_query("select id,username,box3,mastereditname from guanli  where box3='1' and username='".$_SESSION["username2"]."'  order by id"); 
  }
  
  
  
	       if($query==true){
		   while($myrow=mysql_fetch_array($query)){
		 ?>
["<?php echo $myrow[username];?>","<?php echo $myrow[mastereditname];?>"],
<?php }}?>




["市场部菜鸟","市场部"]
]

;
</script>




<script language="JavaScript" type="text/javascript">
//ChangeSelect(上一级的值,下一级Select控件的ID值,下一级Select控件要选中的值(即value而非text),数据源数组名)，第一级的上级值为0
function ChangeSelect2(ParentValue, NextId, NextSelectedValue, ArrObj)
{
    StrObj = eval(document.getElementById(NextId));
    StrObj.length = 0;
    //判断它是二维数组数据源，还是三维数组数据源
    if (ArrObj.length > 0)
    {
        if (ArrObj[0].length == 2)
        {ArrNum = 0;}
        else
        {ArrNum = 2;}
    }
    //显示所有列表
    for (i = 0; i < ArrObj.length; i++)
    {
        if (i == 0)
        {
            StrObj.options[StrObj.length] = new Option("- 請選擇 -", "");
        }
        if (ArrObj[i][1] == ParentValue)
        {
            StrObj.options[StrObj.length] = new Option(ArrObj[i][0],ArrObj[i][ArrNum]);
        }
    }
    //选中列表内某一项
    for (i = 0; i < StrObj.length; i++)
    {
        if (StrObj.options[i].value == NextSelectedValue)
        {
            StrObj.options[i].selected = true;
        }
    }
    //激发下一级的onchange事件以实现多级级联
    StrObj.onchange();
}

//公司二维数组数据源
Office8 = [
["CategoryName","ParentCategoryName"],


 <?php 
 if($_SESSION["box11"]==1){
 $query=mysql_query("select id,username,box5 from guanli where box5='1' order by id");
 }elseif($_SESSION["box55"]==1){
 $query=mysql_query("select id,username,box5 from guanli where box5='1' and username='".$_SESSION["username2"]."' order by id");
 }elseif($_SESSION["box66"]==1){
 $query=mysql_query("select id,username,box5 from guanli where box5='1' and username='".$_SESSION["mastersalename2"]."' order by id");
 }
 
 
	       if($query==true){
		   while($myrow=mysql_fetch_array($query)){
		  ?>
["<?php echo $myrow[username];?>","0"],
 <?php }}?>
 
 
 <?php 
 if($_SESSION["box11"]==1){
 $query=mysql_query("select id,username,box6,mastersalename from guanli  where box6='1'  order by id");
 }elseif($_SESSION["box55"]==1){
 $query=mysql_query("select id,username,box6,mastersalename from guanli  where box6='1' and mastersalename='".$_SESSION["username2"]."'  order by id");
 }elseif($_SESSION["box66"]==1){
 $query=mysql_query("select id,username,box6,mastersalename from guanli  where box6='1' and username='".$_SESSION["username2"]."'  order by id");
 }
 
	       if($query==true){
		   while($myrow=mysql_fetch_array($query)){
		 ?>
["<?php echo $myrow[username];?>","<?php echo $myrow[mastersalename];?>"],
<?php }}?>




["市场部菜鸟","市场部"]
]

;
</script>




<a name="top" id="top"></a>
<div id="all"><!--Wrap start //-->
<div id="main" class="clearfix"><!--main start //-->
<div id="top-1"><?php include_once('blog_top_btn.php');?>
</div>
<!--Content for  id "submenu" Goes Here //-->
<div id="submenu">
<?php include_once('admin_main_btn.php');?>
  </div>
 <!--Content for  id "contact" Goes Here //-->
 <div id="contact-admin">
   
   
   
   
   
   
<?php 
$linkname="admin-acc-no-main";
?> 
   
   
   
   
   
      <?php 
//修改數據
$id=make_safe($_GET["id"]);
$action=make_safe($_GET["action"]);
$lb1=make_safe($_POST["lb1"]);
$lb2=make_safe($_POST["lb2"]);
$mastereditname1=make_safe($_POST["mastereditname1"]);
$mastereditname2=make_safe($_POST["mastereditname2"]);
$editname2=make_safe($_POST["editname2"]);

$mastersalename1=make_safe($_POST["mastersalename1"]);
$mastersalename2=make_safe($_POST["mastersalename2"]);
$salename2=make_safe($_POST["salename2"]);


$box1=make_safe($_POST["box1"]);
$box2=make_safe($_POST["box2"]);
$box3=make_safe($_POST["box3"]);
$box4=make_safe($_POST["box4"]);
$box5=make_safe($_POST["box5"]);
$box6=make_safe($_POST["box6"]);
$box7=make_safe($_POST["box7"]);
$box8=make_safe($_POST["box8"]);
$box9=make_safe($_POST["box9"]);

if($box1==""){$box1=0;}
if($box2==""){$box2=0;}
if($box3==""){$box3=0;}
if($box4==""){$box4=0;}
if($box5==""){$box5=0;}
if($box6==""){$box6=0;}
if($box7==""){$box7=0;}
if($box8==""){$box8=0;}
if($box9==""){$box9=0;}



$a1=make_safe($_POST["a1"]);
$a2=make_safe($_POST["a2"]);
$a3=make_safe($_POST["a3"]);
$a4=make_safe($_POST["a4"]);
$a5=make_safe($_POST["a5"]);
$a6=make_safe($_POST["a6"]);
$a7=make_safe($_POST["a7"]);
$a8=make_safe($_POST["a8"]);
$a9=make_safe($_POST["a9"]);

if($a1==""){$a1=0;}
if($a2==""){$a2=0;}
if($a3==""){$a3=0;}
if($a4==""){$a4=0;}
if($a5==""){$a5=0;}
if($a6==""){$a6=0;}
if($a7==""){$a7=0;}
if($a8==""){$a8=0;}
if($a9==""){$a9=0;}

include("check.php");
if($lb1=="1"){
if($action=="xiugai" and $box2=="1"){
if($query=mysql_query("update guanli set box2='$box2' where id='$id'"))
{
echo "<script>alert('資料修改成功！');window.location.href='".$linkname.".php?page=".$page."';</script>";
}
else
{
echo "<script>alert('資料修改失敗！');window.location.href='".$linkname.".php?page=".$page."';</script>";
}
}


if($action=="xiugai" and $box3=="1"){
if($query=mysql_query("update guanli set box3='$box3',mastereditname='$mastereditname1' where id='$id'"))
{
echo "<script>alert('資料修改成功！');window.location.href='".$linkname.".php?page=".$page."';</script>";
}
else
{
echo "<script>alert('資料修改失敗！');window.location.href='".$linkname.".php?page=".$page."';</script>";
}
}


if($action=="xiugai" and $box4=="1"){
if($query=mysql_query("update guanli set box4='$box4',mastereditname='$mastereditname2',editname='$editname2',a1='$a1',a2='$a2',a3='$a3',a4='$a4',a5='$a5',a6='$a6',a7='$a7',a8='$a8',a9='$a9'  where id='$id'"))
{
echo "<script>alert('資料修改成功！');window.location.href='".$linkname.".php?page=".$page."';</script>";
}
else
{
echo "<script>alert('資料修改失敗！');window.location.href='".$linkname.".php?page=".$page."';</script>";
}
}
}








if($lb2=="1"){
if($action=="xiugai" and $box5=="1"){
if($query=mysql_query("update guanli set box5='$box5' where id='$id'"))
{
echo "<script>alert('資料修改成功！');window.location.href='".$linkname.".php?page=".$page."';</script>";
}
else
{
echo "<script>alert('資料修改失敗！');window.location.href='".$linkname.".php?page=".$page."';</script>";
}
}


if($action=="xiugai" and $box6=="1"){
if($query=mysql_query("update guanli set box6='$box6',mastersalename='$mastersalename1' where id='$id'"))
{
echo "<script>alert('資料修改成功！');window.location.href='".$linkname.".php?page=".$page."';</script>";
}
else
{
echo "<script>alert('資料修改失敗！');window.location.href='".$linkname.".php?page=".$page."';</script>";
}
}


if($action=="xiugai" and $box7=="1"){
if($query=mysql_query("update guanli set box7='$box7',mastersalename='$mastersalename2',salename='$salename2'  where id='$id'"))
{
echo "<script>alert('資料修改成功！');window.location.href='".$linkname.".php?page=".$page."';</script>";
}
else
{
echo "<script>alert('資料修改失敗！');window.location.href='".$linkname.".php?page=".$page."';</script>";
}
}
}


?>


   <script language="javascript">
	function check(form1){
if(document.getElementById("lb1")!=null){	
if(document.form1.lb1.checked==true){		
if(document.form1.box3.checked==true){	
if(document.form1.mastereditname1.value==""){
alert("请選擇  master name!");document.form1.mastereditname1.focus();return false;		
}
}
		
if(document.form1.box4.checked==true){	
if(document.form1.mastereditname2.value==""){
alert("请選擇  master name!");document.form1.mastereditname2.focus();return false;		
}		
if(document.form1.editname2.value==""){
alert("请選擇 editname!");document.form1.editname2.focus();return false;		
}
}
}
}


if(document.getElementById("lb2")!=null){
if(document.form1.lb2.checked==true){		
if(document.form1.box6.checked==true){	
if(document.form1.mastersalename1.value==""){
alert("请選擇  master name!");document.form1.mastersalename1.focus();return false;		
}
}
		
if(document.form1.box7.checked==true){	
if(document.form1.mastersalename2.value==""){
alert("请選擇  master name!");document.form1.mastersalename2.focus();return false;		
}		
if(document.form1.salename2.value==""){
alert("请選擇 sale name!");document.form1.salename2.focus();return false;		
}
}
}
}

		
}
</script>

   <form   action="?action=xiugai&id=<?php echo $id;?>" method="post" name="form1"  >
   
   <table border="0" cellspacing="0" cellpadding="0">
     <tr>
       <td>選擇部門：</td>
     </tr>
     <tr>
       <td><ul>
	   <?php if($_SESSION["box11"]==1 or $_SESSION["box22"]==1 or $_SESSION["box33"]==1 ){?>
         <li>
           <input name="lb1" id="lb1" type="radio"  checked="checked"  onclick="check_bumeng1()" value="1"  />
          編輯部</li>
		   <?php }?>
		   
		   <?php if($_SESSION["box11"]==1 or $_SESSION["box55"]==1 or $_SESSION["box66"]==1 ){?>
		   <li>       
           <input name="lb2" id="lb2" type="radio" onclick="check_bumeng2()" value="1"  <?php if( $_SESSION["box55"]==1 or $_SESSION["box66"]==1 ){echo "checked='checked'";}?>  />
          
           業務部</li>
		   <?php }?>
		  
		   
		   
		   
        
       </ul></td>
     </tr>
   </table>
   
     <table border="0" cellspacing="0" cellpadding="0">
     <tr>
       <td>帳號權限設定：</td>
     </tr>
     <tr>
       <td id="bumeng1"  style="display:<?php if($_SESSION["box11"]==1 or $_SESSION["box22"]==1 or $_SESSION["box33"]==1 ){echo "block";}else{echo "none";}?>"><ul>
         <li>編輯部選這邊：</li>
		 <?php if($_SESSION["box11"]==1){?>
         <li>
          <input name="box2" type="radio" id="box2" value="1" checked="checked" onclick="check_box2()"  />
          master edit</li>
		   <?php }?>
		   
		<?php if($_SESSION["box11"]==1 or  $_SESSION["box22"]==1 ){?> 
		 <li>
		 <input name="box3" type="radio" id="box3"  value="1"  onclick="check_box3()" <?php if($_SESSION["box22"]==1){echo "checked='checked'";}?>  />
         edit</li>
		   <?php }?>
		   
		   
		  <?php if($_SESSION["box11"]==1 or  $_SESSION["box22"]==1 or  $_SESSION["box33"]==1 ){?> 
		 <li>
         <input name="box4" type="radio" id="box4"  value="1"  onclick="check_box4()" <?php if($_SESSION["box33"]==1){echo "checked='checked'";}?> />          
         blog</li>
		 <?php }?>
         
       </ul></td>
	   <td id="bumeng2" style="display:<?php if( $_SESSION["box55"]==1 or $_SESSION["box66"]==1 ){echo "block";}else{echo "none";}?>"><ul>
         <li>業務部選這邊：</li>
		 <?php if($_SESSION["box11"]==1){?>
         <li>
          <input name="box5" type="radio" id="box5"  value="1" checked="checked" onclick="check_box5()"  />
          master sale</li>
		  <?php }?>
		  
		    <li>
					
          <input name="box6" type="radio" id="box6"  value="1"  onclick="check_box6()"  <?php if($_SESSION["box55"]==1){echo "checked='checked'";}?> />
          sale</li>
		  
		  <li>
<input name="box7" type="radio" id="box7"  value="1"  onclick="check_box7()" />          
design</li>
         
       </ul></td>
     </tr>
     
	 
	 
	 
	 
	 
	 
	 <tr>
       <td id="edit1"  style="display:<?php if($_SESSION["box22"]==1){echo "block";}else{echo "none";}?>"><ul>
         <li>編輯部選這邊：</li>
         <li>master name
		      <select name="mastereditname1">
			  <option value="">-請選擇-</option>
		        <?php 
     if($_SESSION["box11"]==1){
    $sql="select * from guanli where   box1!='1'   and  box2='1' order by id desc ";
	}elseif($_SESSION["box22"]==1){
	$sql="select * from guanli where   box1!='1'   and  box2='1' and username='".$_SESSION["username2"]."'   order by id desc ";
	}
	
				
	$result=mysql_query($sql);
	while ($row=mysql_fetch_object($result)){
	?>
		        <option value="<?php echo $row->username;?>"><?php echo $row->username;?></option>
	<?php }?>	    
              </select>
          </li>
		   
		
		 
         
       </ul></td>
	   <td id="edit2" style="display:<?php if($_SESSION["box33"]==1){echo "block";}else{echo "none";}?>"><ul>
         <li>編輯部選這邊：</li>
		 
         <li>master name  </li>
		 <li>
<select name="mastereditname2"  id="office1"  onchange="ChangeSelect(this.value,'office2','',Office)" ></select>
          </li>
		  
		  <li>eidt name </li> 
		  <li>
		 <select name="editname2" id="office2" onChange="" style="width:100px"></select>
<script language="JavaScript" type="text/javascript">ChangeSelect('0','office1','',Office) </script>
           </li> 
         
       </ul></td>
     </tr>
	 
	 
	 
	 
	 
	 
	 <tr>
       <td id="blog" style="display:<?php if($_SESSION["box33"]==1){echo "block";}else{echo "none";}?>"><ul>
         <li><input name="a1" type="checkbox" value="1"  />Flavor</li>
		 <li><input name="a2" type="checkbox" value="1" />Trend</li>
		 <li><input name="a3" type="checkbox" value="1" />City</li>
		 <li><input name="a4" type="checkbox" value="1" />Traveling</li>
		 <li><input name="a5" type="checkbox" value="1" />Opinion</li>
		 <li><input name="a6" type="checkbox" value="1" />collection</li>
        
       </ul></td>
     </tr>
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 
	 <tr>
       <td id="sale1"  style="display:<?php if($_SESSION["box55"]==1){echo "block";}else{echo "none";}?>"><ul>
         <li>業務部選這邊：</li>
         <li>master sale
		      <select name="mastersalename1">
			  <option value="">-請選擇-</option>
		        <?php 
     if($_SESSION["box11"]==1){
    $sql="select * from guanli where   box1!='1'   and  box5='1' order by id desc ";
	}elseif($_SESSION["box55"]==1){
	$sql="select * from guanli where   box1!='1' and  box5='1' and username='".$_SESSION["box55"]."' order by id desc ";
	}elseif($_SESSION["box66"]==1){
	$sql="select * from guanli where   box1!='1' and  box5='1' and username='".$_SESSION["mastersalename2"]."' order by id desc ";
	}
	
	
				
	$result=mysql_query($sql);
	while ($row=mysql_fetch_object($result)){
	?>
		        <option value="<?php echo $row->username;?>"><?php echo $row->username;?></option>
	<?php }?>	    
              </select>
          </li>
		   
		
		 
         
       </ul></td>
	   <td id="sale2" style="display:<?php if($_SESSION["box66"]==1){echo "block";}else{echo "none";}?>"><ul>
         <li>業務部選這邊：</li>
		 
         <li>master sale  </li>
		 <li>
<select name="mastersalename2"  id="office3"  onchange="ChangeSelect(this.value,'office4','',Office8)" ></select>
          </li>
		  
		  <li>sale name </li> 
		  <li>
		 <select name="salename2" id="office4" onChange="" style="width:100px"></select>
<script language="JavaScript" type="text/javascript">ChangeSelect2('0','office3','',Office8) </script>
           </li> 
         
       </ul></td>
     </tr>
	 
	 <tr>
       <td ><ul>
         <li>&nbsp;</li>
         <li>
           <input type="submit" name="Submit" value="提交保存" onClick="return check(form1);" />
         </li></ul></td>
	   
     </tr>
	 
   </table>
    </form>
   
   
   
   
   
   
   
   
   


   
   
   
   
   
   
   
   
   
   <?php 
   $id=make_safe($_GET["id"]);   
    $sql="select * from guanli where id='$id' ";	
	$result=mysql_query($sql);
	while ($row=mysql_fetch_object($result)){
	?>
   <table border="0" cellspacing="0" cellpadding="0">
     <tr>
       <td colspan="2">帳號相關資訊：</td>
     </tr>
     
     
	 <tr>
       <td class="contact-admin-l">登入帳號：</td>
       <td class="contact-admin-r"><?php echo $row->username;?></td>
     </tr>
     <tr>
       <td class="contact-admin-l">登入密碼：</td>
       <td class="contact-admin-r"><?php echo $row->password;?></td>
     </tr>
	
	 
	 <tr>
       <td class="contact-admin-l">姓名：</td>
       <td class="contact-admin-r"><label for="textfield2"></label>
         <?php echo $row->name;?></td>
     </tr>
	 
     <tr>
       <td class="contact-admin-l">電子郵件：</td>
       <td class="contact-admin-r"><?php echo $row->email;?></td>
     </tr>
	 <tr>
       <td class="contact-admin-l">MSN：</td>
       <td class="contact-admin-r"><?php echo $row->msn;?></td>
     </tr>
     <tr>
       <td class="contact-admin-l">連絡電話：</td>
       <td class="contact-admin-r"><?php echo $row->tel;?></td>
     </tr>
     <tr>
       <td class="contact-admin-l">個人網址：</td>
       <td class="contact-admin-r"><?php echo $row->address;?></td>
     </tr>
   
   </table>
   <?php }?>
   
   
   
   
   
   
   
   

   
   
   
   
   
   
   
   
   
   
   
   
   
   
 </div>
</div><!-- main end //-->
</div><!--Wrap end //-->
<div id="botton">
 <?php include_once('blog_botton_btn.php');?>
</div>






   
 <script language="javascript">

	function check_bumeng1(){
j=document.getElementById("bumeng1");
j.style.display = "block";

k=document.getElementById("bumeng2");
k.style.display = "none";
document.getElementById("lb1").checked=true;
document.getElementById("lb2").checked=false;
if(document.getElementById("box3").checked==true){
document.getElementById("edit1").style.display = "block";
}

if(document.getElementById("box4").checked==true){
document.getElementById("edit2").style.display = "block";
document.getElementById("blog").style.display = "block";
}



document.getElementById("sale1").style.display = "none";
document.getElementById("sale2").style.display = "none";
}

function check_bumeng2(){
j=document.getElementById("bumeng1");
j.style.display = "none";

k=document.getElementById("bumeng2");
k.style.display = "block";
document.getElementById("lb1").checked=false;
document.getElementById("lb2").checked=true;
document.getElementById("edit1").style.display = "none";
document.getElementById("edit2").style.display = "none";
document.getElementById("blog").style.display = "none";


if(document.getElementById("box6").checked==true){
document.getElementById("sale1").style.display = "block";
}
if(document.getElementById("box7").checked==true){
document.getElementById("sale2").style.display = "block";
}

}

function check_box2(){
if(document.getElementById("box2")!=null){
document.getElementById("box2").checked=true;
}
document.getElementById("box3").checked=false;
document.getElementById("box4").checked=false;
document.getElementById("edit1").style.display = "none";
document.getElementById("edit2").style.display = "none";
document.getElementById("blog").style.display = "none";
document.getElementById("sale1").style.display = "none";
document.getElementById("sale2").style.display = "none";
}

function check_box3(){
if(document.getElementById("box2")!=null){
document.getElementById("box2").checked=false;
}
document.getElementById("box3").checked=true;
document.getElementById("box4").checked=false;

document.getElementById("edit1").style.display = "block";

document.getElementById("edit2").style.display = "none";
document.getElementById("blog").style.display = "none";
document.getElementById("sale1").style.display = "none";
document.getElementById("sale2").style.display = "none";
}

function check_box4(){
if(document.getElementById("box2")!=null){
document.getElementById("box2").checked=false;
}
document.getElementById("box3").checked=false;
document.getElementById("box4").checked=true;
document.getElementById("edit1").style.display = "none";
document.getElementById("edit2").style.display = "block";
document.getElementById("blog").style.display = "block";
document.getElementById("sale1").style.display = "none";
document.getElementById("sale2").style.display = "none";
}


function check_box5(){
document.getElementById("box5").checked=true;
document.getElementById("box6").checked=false;
document.getElementById("box7").checked=false;
document.getElementById("edit1").style.display = "none";
document.getElementById("edit2").style.display = "none";
document.getElementById("blog").style.display = "none";
document.getElementById("sale1").style.display = "none";
document.getElementById("sale2").style.display = "none";
}

function check_box6(){
if(document.getElementById("box5")!=null){
document.getElementById("box5").checked=false;
}
document.getElementById("box6").checked=true;
document.getElementById("box7").checked=false;
document.getElementById("edit1").style.display = "none";
document.getElementById("edit2").style.display = "none";
document.getElementById("blog").style.display = "none";
document.getElementById("sale1").style.display = "block";
document.getElementById("sale2").style.display = "none";
}

function check_box7(){
if(document.getElementById("box5")!=null){
document.getElementById("box5").checked=false;
}
document.getElementById("box6").checked=false;
document.getElementById("box7").checked=true;
document.getElementById("edit1").style.display = "none";
document.getElementById("edit2").style.display = "none";
document.getElementById("blog").style.display = "none";
document.getElementById("sale1").style.display = "none";
document.getElementById("sale2").style.display = "block";
}

</script>



</body>
</html>
